import random


class Settings():
    """A class to store all settings for Alien Invasion."""
    def __init__(self):
        """游戏设置"""
        # 游戏开始标准
        self.is_begin = False
        # 屏幕设置
        self.screen_width = 1200
        self.screen_height = 650
        self.bg_color = (230, 230, 230)

        # 飞船设置
        self.ship_speed_factor = 1.5

        #外星人的设置
        self.alien_create_time = 2
        self.alien_width = 100
        self.alien_height = 100
        self.alien_vertical_speed_factor = 0.03
        self.alien_horizontal_speed_factor = random.uniform(1.3, 1.8)

        #飞船子弹的设置
        self.bullet_width = 4
        self.bullet_height = 10
        self.bullet_color = (0, 0, 0)
        self.bullet_speed_factor = 1.5
